/*
版权@hehung所有，转载请申明
email：1398660197@qq.com
*/
#ifndef __APP_WEATHER_H__
#define __APP_WEATHER_H__

#include <stdint.h>
#include <string.h>
#include <stdbool.h>

typedef struct
{
    int temp_low;
    int temp_high;
    int temp_curr;
    int humi_curr;
    char *weather_today;
    char *weather_curr;
} s_WeatherType;


extern void Weather_TaskInit(void);
extern void Network_W800RcvCb(int linkid, 
                       void *data, 
                       size_t len, 
                       char remote_ip[16], 
                       uint16_t remote_ports);
extern s_WeatherType Weather_GetWeatherInfo(void);
extern uint8_t Weather_GetSuccessFlg(void);
extern void Weather_SettingCityCode(uint32_t city_code);
extern uint32_t Weather_GetCityCode(void);
extern void Weather_SetUpdateFlg(void);

#endif
